<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>组件的创建</title>
    <script src="../../lib/vue.js"></script>
</head>
<body>
    <div id="app">
        <mycom></mycom>
    </div>

    <script>

        Vue.component('mycom',{
            template:"<input type='text' v-model='msg'></input>",
            data:function(){
                return {
                    msg:"在组件中返回的值"
                }
            }
        });

        var vue = new Vue({
            el:'#app',
            data:{

            },
            methods:{

            }
        });
    </script>
</body>
</html>